Platform Explorer / Nuxeo Platform 6.0

Component org.nuxeo.ecm.platform.categorization.listener

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.categorization.listener" version="1.0.0">

  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener">

    <documentation>
      Sample core event listeners that reacts to document related events
      and launch all registered document categorizers.
    </documentation>

    <listener name="documentCategorizationSyncListener" async="false" postCommit="false"
      class="org.nuxeo.ecm.platform.categorization.listener.DocumentCategorizationSyncListener"
      priority="50">
      <event>aboutToCreate</event>
      <event>beforeDocumentModification</event>
    </listener>

    <!-- disabled to workaround what looks like a cache invalidation problem
    <listener name="documentCategorizationAsyncListener" async="true" postCommit="true"
      class="org.nuxeo.ecm.platform.categorization.listener.DocumentCategorizationAsyncListener"
      priority="501"/>
    -->

  </extension>

</component>